package com.hu.zhcc.shiro.controller.xsx;


import com.hu.zhcc.shiro.entity.xsx.XsxTMember;
import com.hu.zhcc.shiro.service.xsx.TMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 会员表 前端控制器
 * </p>
 *
 * @author xsx
 * @since 2021-06-11
 */
@RestController
@RequestMapping("/tMember")
public class TMemberController {

    @Autowired
    TMemberService tMemberService;

    @PutMapping("/{bh}/num")
    private List<XsxTMember> queryRqfl(@PathVariable("bh") Integer bh, Integer num){
        return tMemberService.queryRqfl(bh);
    }

    @PutMapping("/{jksid}")
    private List<XsxTMember> fyy(@PathVariable("jksid") Integer jksid){
        return tMemberService.queryFyy(jksid);
    }

    @GetMapping("/queryTj")
    private List<XsxTMember> queryTj(){
        return tMemberService.queryTj();
    }

    @PostMapping("/{hyid}")
    private XsxTMember queryBs(@PathVariable("hyid") Integer hyid){
        return tMemberService.queryBs(hyid);
    }

}

